package com.futao.eurekaconsumer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author futao
 * Created on 18-6-6-下午1:31.
 */
@RestController
public class FeignController {
    @Autowired
    private FeignClient feignClient;

    @GetMapping("/feignConsumer")
    public String dc() {
        return feignClient.consumer();
    }
}
